<?php

namespace app\order\controller;
use app\api\logic\TeamLogic;
use app\common\controller\DBase;
use app\common\library\Upload;
use app\common\service\CommonExportCsvTaskLogService;
use Throwable;
use  think\App;
class TeamSync extends DBase
{

    /**
     * @desc     spu超过180天开发变为历史开发
     * @date     2024-10-30
     * @author   luckyXiong
     */
    public function upDevelopType(){
        $data   = $this->request->post();
        $res    = (new TeamLogic())->upDevelopTypeProduce();
        return $this->jsonMessage(200,true,'操作成功',$res);
    }



    /**
     * @desc     获取员工花名册信息
     * @date     2024-10-31
     * @author   luckyXiong
     */
    public function upEmployees(){
        $params = $this->request->get();
        $res    = (new TeamLogic())->upEmployeesProduce($params);
        return $this->jsonMessage(200,true,'操作成功',$res);
    }


    /**
     * @desc     更新cookie信息
     * @date     2024-11-07
     * @author   luckyXiong
     */
    public function upCookieInfo(){
        $params = $this->request->post();
        $res    = (new TeamLogic())->upCookieInfo($params);
        return $this->jsonMessage(200,true,'操作成功',$res);
    }


    /**
     * @desc     更新cookie信息
     * @date     2024-11-07
     * @author   luckyXiong
     */
    public function getAnalyticsToken(){
        $res    = (new TeamLogic())->getAnalyticsToken();
        return $this->jsonMessage(200,true,'操作成功',$res);
    }


    /**
     * @desc     获取登陆页面访问量数据
     * @date     2024-11-07
     * @author   luckyXiong
     */
    public function getVisitList(){
        $params = $this->request->get();
        $res    = (new TeamLogic())->getVisitList();
        return $this->jsonMessage(200,true,'操作成功',null);
    }


    /**
     * @desc     获取历史访问量数据
     * @date     2024-11-06
     * @author   luckyXiong
     */
    public function getHistoryVisit(){
        $params = $this->request->get();
        $res    = (new TeamLogic())->getHistoryVisit();
        return $this->jsonMessage(200,true,'操作成功',null);
    }

    /**
     * @desc     获取登陆页面显示访问情况数据
     * @date     2025-03-12
     * @author   luckyXiong
     */
    public function getLoginPath(){
        $params = $this->request->post();
        $res    = (new TeamLogic())->getLoginPath($params);
        return $this->jsonMessage(200,true,'操作成功',$res);
    }
















}